#!/bin/bash
git pull

mvn clean install

rm -rf /www/server/storage/storage-admin.jar
cp /home/code/storage/storage-admin/target/storage-admin.jar /www/server/storage/
cd /www/server/storage/

source /etc/profile
killall java
nohup java -jar /www/server/storage/storage-admin.jar > nohup.log 2>&1 &